<template>
  <!--关键指标 -->
  <div class="content1">
    <div class="top"><span>{{keyIndicator}}</span></div>
    <!-- 将template改成div即可 -->
    <template v-for="item in items">
        <div class="footer" v-bind="item.index">
            <div class="footer-top"><span>{{item.name}}</span></div>
            <div class="footer-content"><p>{{item.value}}</p></div>
        </div>
    </template>
  </div>
</template>

<script>
export default {
    name:"keyIndiactor",
    data() {
        return {
            keyIndicator: "关键指标",
            items:[
                {
                    index:0,
                    name:"待选企业总数",
                    value:"0"
                },
                {
                    index:1,
                    name:"已选/未选企业",
                    value:"0/0"
                },
                {
                    index:2,
                    name:"已选未达标",
                    value:"0"
                },
                {
                    index:3,
                    name:"特殊情况",
                    value:"0"
                },
                {
                    index:4,
                    name:"预估缺口/剩余缺口",
                    value:"0万/0万"
                }
            ]
        }
    }
}
</script>

<style scoped lang="scss">
.content1{
    width: 100%;
    height: 160px;
    border: 1px solid #E4E7ED;
}
.top{
    width: 100%;
    height: 30px;
    background-color: #EBEEF5;
    line-height: 30px;
    span{
        margin-left: 20px;
    }
    font-family: "Avenir", Helvetica, Arial, sans-serif;
    font-weight: 14px;
    font-style: normal;
}
.footer{
    display: block;
    float: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
    height: 120px;
    width: 180px;
    margin-left: 20px;
    margin-top: 5px;
    text-align: center;
}
.footer-content{
    text-align: center;
    width: 180px;
    height: 80px;
    p{
        font-weight: bolder;
        font-size:20px;
    }
}
.footer-top{
    height: 40px;
    width: 100%;
    span{
        margin-bottom: 0px;
        line-height: 70px;
        font-size: 6px;
    }
}
</style>